package com.interview.javabasic.tests;/*
@李子宁
Happy,happy everyday!
冲鸭！
*/

import cn.Nodes.test;

import java.util.Scanner;

public class erjinzhi {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入两个整数：");
        int a = in.nextInt();
        int b = in.nextInt();
        test(a,b);

    }

    public static void test(int m,int n){
        int k = m ^ n;
        int count = 0;
        for (int i = 0; i < 32; i++) {
            if (((k >> i) & 1) != 0){
                count++;
            }
        }
        System.out.println(count);
    }
}
